//
//  MobilePhoneCell.m
//  wanzhaoIM
//
//  Created by wanzhao on 16/1/6.
//  Copyright © 2016年 liuyuantao. All rights reserved.
//

#import "MobilePhoneCell.h"

@implementation MobilePhoneCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
//bug 9265 fixed by lixu
-(void)drawRect:(CGRect)rect
{
    CGFloat heigt = self.frame.size.height;
    CGFloat width = self.frame.size.width;
    self.icon.frame = CGRectMake(5.0f, 5.0f, heigt - 10.0f, heigt - 10.0f);
    self.nameLabel.frame = CGRectMake(CGRectGetMaxX(self.icon.frame) + 10.0f, 0, 100.0f, heigt);
    self.positionLabel.frame = CGRectMake(CGRectGetMaxX(self.nameLabel.frame), 0, width - CGRectGetMaxX(self.nameLabel.frame) - 15.0f, heigt);
    self.positionLabel.textAlignment = NSTextAlignmentLeft;
    self.seperatorLine.frame = CGRectMake(0, heigt - 0.5f, width, 0.5f);


}
//- (void)layoutSubviews
//{
//    [super layoutSubviews];
//    CGFloat heigt = self.frame.size.height;
//    CGFloat width = self.frame.size.width;
//    self.icon.frame = CGRectMake(5.0f, 5.0f, heigt - 10.0f, heigt - 10.0f);
//    self.nameLabel.frame = CGRectMake(CGRectGetMaxX(self.icon.frame) + 10.0f, 0, 100.0f, heigt);
//    self.positionLabel.frame = CGRectMake(CGRectGetMaxX(self.nameLabel.frame), 0, width - CGRectGetMaxX(self.nameLabel.frame) - 15.0f, heigt);
//    self.positionLabel.textAlignment = NSTextAlignmentLeft;
//    self.seperatorLine.frame = CGRectMake(0, heigt - 0.5f, width, 0.5f);
//}
@end
